#pragma once
#include "../../../../../utils/common_ptr.h"

class OracleIntervalType
{
public:
  static OracleIntervalType_ptr YEAR;
  static OracleIntervalType_ptr MONTH;
  static OracleIntervalType_ptr DAY;
  static OracleIntervalType_ptr HOUR;
  static OracleIntervalType_ptr MINUTE;
  static OracleIntervalType_ptr SECOND;

  string_ptr name;
  uint64_t mask;
  OracleIntervalType(uint64_t mask, string_ptr name);
  static OracleIntervalType_ptr valueOf(string_ptr name);
};
